<div class="form">
    <?php
    /** @var PatologiasController $this */
    /** @var Patologias $model */
    /** @var AweActiveForm $form */
    $form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array(
        'id' => 'patologias-form',
        'enableAjaxValidation' => false,
        'action' => Yii::app()->baseUrl . "/index.php/ninio/patologias/create/ajax/true",
        'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => false,), // valida en el mismo _ajax
        'enableClientValidation' => true,
    ));
    ?>

    <p class="note">
        <?php echo Yii::t('AweCrud.app', 'Fields with') ?> <span class="required">*</span>
        <?php echo Yii::t('AweCrud.app', 'are required') ?>.    </p>

    <?php echo $form->errorSummary($model) ?>
    <div class="row-fluid">
        <div class="spna5">
            <?php echo $form->dropDownListRow($model, 'ninios_id', array('' => ' -- Seleccione -- ') + CHtml::listData(Ninios::model()->findAll(), 'id', Ninios::representingColumn())) ?>
        </div>
        <div class="spna5">
            <?php echo $form->textFieldRow($model, 'pregunta1', array('maxlength' => 45)) ?>
        </div>
    </div>
    <div class="row-fluid">
        <div class="spna5">
            <?php echo $form->textFieldRow($model, 'pregunta2', array('maxlength' => 45)) ?>
            <div class="spna5">
            </div>
            <?php echo $form->textFieldRow($model, 'pregunta3', array('maxlength' => 45)) ?>
            <div class="row-fluid">
                <div class="spna5">
                    <?php echo $form->textFieldRow($model, 'pregunta4', array('maxlength' => 45)) ?>
                </div>
                <div class="spna5">
                </div>
            </div>
            <div class="form-actions">
                <?php
                $this->widget('bootstrap.widgets.TbButton', array(
                    'buttonType' => 'submit',
                    'type' => 'primary',
                    'label' => $model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Save'),
                ));
                ?>
                <?php
                $this->widget('bootstrap.widgets.TbButton', array(
                    //'buttonType'=>'submit',
                    'label' => Yii::t('AweCrud.app', 'Cancel'),
                    'htmlOptions' => array('onclick' => 'javascript:history.go(-1)')
                ));
                ?>
            </div>

            <?php $this->endWidget(); ?>
        </div>